﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VisualClockTest
{
    public partial class Form1 : Form
    {
        bool isStop = false;
        WRX.AnimationClassLibrary.FormAnimat.FormAnimatEngine fe;
        public Form1()
        {
            InitializeComponent();
            this.Load += new EventHandler(Form1_Load);
            this.visualColck1.MouseClick += new MouseEventHandler(visualColck1_MouseClick);
        }

        void visualColck1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button.Equals(MouseButtons.Left))
            {
                if (isStop)
                {
                    fe.StartAll();
                }
                else fe.StopAll();

                isStop = !isStop;
            }
            //throw new NotImplementedException();
        }

        void Form1_Load(object sender, EventArgs e)
        {
            fe = new WRX.AnimationClassLibrary.FormAnimat.FormAnimatEngine();
            fe.AddScaleAndDragFunction(visualColck1);
            fe.FloatControlLeftRight(visualColck1);
            //throw new NotImplementedException();
        }
    }
}
